module.exports = getDate = (req)=>{
    const date = new Date()
    if(req == 'today'){
           // 今天日期
           const today = [date.getFullYear(), (date.getMonth() + 1).toString().padStart(2, '0'), (date.getDate()).toString().padStart(2, 0)].join('')
           return today
    }
    return date
}